<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title><?php echo $this->_siteConfig->name;?></title>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<script type="text/javascript" charset="UTF-8" src="/git/micarshop/runtime/_systemjs/jquery/jquery-1.12.4.min.js"></script>
	<script type="text/javascript" charset="UTF-8" src="/git/micarshop/runtime/_systemjs/form/form.js"></script>
	<script type="text/javascript" charset="UTF-8" src="/git/micarshop/runtime/_systemjs/autovalidate/validate.js"></script><link rel="stylesheet" type="text/css" href="/git/micarshop/runtime/_systemjs/autovalidate/style.css" />
	<script type="text/javascript" charset="UTF-8" src="/git/micarshop/runtime/_systemjs/artdialog/artDialog.js"></script><script type="text/javascript" charset="UTF-8" src="/git/micarshop/runtime/_systemjs/artdialog/plugins/iframeTools.js"></script><link rel="stylesheet" type="text/css" href="/git/micarshop/runtime/_systemjs/artdialog/skins/aero.css" />
	<script type="text/javascript" charset="UTF-8" src="/git/micarshop/runtime/_systemjs/artTemplate/artTemplate.js"></script><script type="text/javascript" charset="UTF-8" src="/git/micarshop/runtime/_systemjs/artTemplate/artTemplate-plugin.js"></script>
	<!--[if IE]><script src="<?php echo $this->getWebViewPath()."javascript/html5.js";?>"></script><![endif]-->
	<script src="<?php echo $this->getWebViewPath()."javascript/common.js";?>"></script>
	<script src='<?php echo $this->getWebViewPath()."javascript/site.js";?>'></script>
	<!-- <link rel="stylesheet" href="<?php echo $this->getWebSkinPath()."bubugao/css/public.css";?>"> -->
	<link rel="stylesheet" href="<?php echo $this->getWebSkinPath()."style/style.css";?>">
</head>
<body>

<div class="header_top">
	<div class="web">
		<div class="welcome">
			欢迎您来到 <?php echo $this->_siteConfig->name;?>！
			<?php if($this->user){?>
				<a href="<?php echo IUrl::creatUrl("/ucenter/index");?>">个人中心</a>
				<a href="<?php echo IUrl::creatUrl("/simple/logout");?>">退出</a>
			<?php }else{?>
				<a href="<?php echo IUrl::creatUrl("/simple/login");?>">登录</a>
				<a class="reg" href="<?php echo IUrl::creatUrl("/simple/reg");?>">免费注册</a>
			<?php }?>
		</div>
		<div class="header_cart" name="mycart">
			<a href="<?php echo IUrl::creatUrl("/simple/cart");?>" class="go_cart">
				<i class="icon-shopping-cart"></i>
				购物车（<em class="count" name="mycart_count"]>0</em>）
			</a>
			<div class="cart_simple" id="div_mycart"></div>
		</div>
		<!--购物车模板 开始-->
		<script type='text/html' id='cartTemplete'>
		<div class='cart_panel'>
			<ul class='cart_list'>
				<%for(var item in goodsData){%>
				<%var data = goodsData[item]%>
				<li id="site_cart_dd_<%=item%>">
					<em>共<%=data['count']%>件</em>
					<a target="_blank" href="<?php echo IUrl::creatUrl("/site/products/id/<%=data['goods_id']%>");?>">
						<img src="<?php echo IUrl::creatUrl("")."<%=data['img']%>";?>">
						<h5><%=data['name']%></h5>
					</a>
					<span>￥ <%=data['sell_price']%></span>
					<del onclick="removeCart('<%=data['id']%>','<%=data['type']%>');$('#site_cart_dd_<%=item%>').hide('slow');">删除</del>
				</li>
				<%}%>
				<%if(goodsCount){%>
				<div class="cart_total">
					<p>共<span name="mycart_count"><%=goodsCount%></span>件商品</p>
					<p>商品总额：<em name="mycart_sum">￥<%=goodsSum%></em></p>
					<a href="<?php echo IUrl::creatUrl("simple/cart");?>">去购物车结算</a>
				</div>
				<%}else{%>
				<div class='cart_no'>购物车空空如也~</div>
				<%}%>
			</ul>
		</div>
		</script>
		<ul class="top_tool">
			<li><a href="<?php echo IUrl::creatUrl("ucenter/index");?>">个人中心</a></li>
			<?php if($this->user){?>
			<li><a href="<?php echo IUrl::creatUrl("/simple/seller");?>">申请开店</a></li>
			<?php }?>
			<li><a href="<?php echo IUrl::creatUrl("/seller/index");?>">商家管理</a></li>
			<li><a href="<?php echo IUrl::creatUrl("/site/help_list");?>">使用帮助</a></li>
		</ul>
	</div>
</div>
<header class="header web">
	<nav class="header_nav">
		<div class="goods_nav">
			<h1 class="logo">
				<!-- 这里的LOGO图片会自动靠左居中.因此只需要制作一个透明的LOGO图片即可 LOGO最大尺寸 200*90 -->
				<a href="<?php echo IUrl::creatUrl("");?>">
					<img src="<?php if($this->_siteConfig->logo){?><?php echo IUrl::creatUrl("")."".$this->_siteConfig->logo."";?><?php }else{?><?php echo $this->getWebSkinPath()."image/logo.png";?><?php }?>">
				</a>
			</h1>
			<ul class="cat_list none">
				<?php foreach(Api::run('getCategoryListTop') as $key => $first){?>
				<li>
					<h3><a href="<?php echo IUrl::creatUrl("/site/pro_list/cat/".$first['id']."");?>"><?php echo isset($first['name'])?$first['name']:"";?></a></h3>
					<div class="cat_more">
						<ul>
							<?php foreach(Api::run('getCategoryExtendList',array('#categroy_id#',$first['id']),24) as $key => $item){?>
							<li>
								<a href="<?php echo IUrl::creatUrl("/site/products/id/".$item['id']."");?>" target="_blank" title="<?php echo isset($item['name'])?$item['name']:"";?>">
									<img class="img-lazyload" src="<?php echo IUrl::creatUrl("/pic/thumb/img/".$item['img']."/w/40/h/40");?>" alt="<?php echo isset($item['name'])?$item['name']:"";?>">
									<strong><?php echo isset($item['name'])?$item['name']:"";?></strong>
									<em>选购</em>
								</a>
							</li>
							<?php }?>
						</ul>
					</div>
				</li>
				<?php }?>
			</ul>
		</div>
		<ul class="site_nav">
			<li><a href="<?php echo IUrl::creatUrl("/site/index");?>">首页</a></li>
			<?php foreach(Api::run('getGuideList') as $key => $item){?>
			<li><a href="<?php echo IUrl::creatUrl("".$item['link']."");?>"><?php echo isset($item['name'])?$item['name']:"";?></a></li>
			<?php }?>
		</ul>
	</nav>
	<div class="header_search">
		<form method='get' action='<?php echo IUrl::creatUrl("/");?>'>
			<input type='hidden' name='controller' value='site'>
			<input type='hidden' name='action' value='search_list'>
			<div class="search_box">
				<input class="input_keywords" type="text" name='word' autocomplete="off" placeholder="输入关键词">
				<label class="input_submits">
					<input type="submit" value="">
					<i class="icon-search"></i>
				</label>
			</div>
		</form>
		<div class="hot_words">
			<?php foreach(Api::run('getKeywordList',2) as $key => $item){?>
			<?php $tmpWord = urlencode($item['word']);?>
			<a href="<?php echo IUrl::creatUrl("/site/search_list/word/".$tmpWord."");?>"><?php echo isset($item['word'])?$item['word']:"";?></a>
			<?php }?>
		</div>
	</div>

</header>

<div class="bigweb">
	<section class="breadcrumb">
		<span>您当前的位置：</span> <a href="<?php echo IUrl::creatUrl("");?>">首页</a> » <a href="<?php echo IUrl::creatUrl("/ucenter/index");?>">我的账户</a>
	</section>


	<section class="web">
		<section class="main">
			<?php
	
	$siteConfigObj = new Config("site_config");
	$site_config   = $siteConfigObj->getInfo();
?>
<header class="uc_head">
	<h3>订单详情</h3>
</header>



<section class="order_schedule">
	<ol>
		<?php $orderStep = Order_Class::orderStep($this->order_info)?>
		<?php foreach($orderStep as $eventTime => $stepData){?>
		<li><?php echo isset($eventTime)?$eventTime:"";?>&nbsp;&nbsp;<span class="black"><?php echo isset($stepData)?$stepData:"";?></span></li>
		<?php }?>
	</ol>
	<p>
		<strong>订单号：</strong><?php echo isset($this->order_info['order_no'])?$this->order_info['order_no']:"";?>
		<strong>下单日期：</strong><?php echo isset($this->order_info['create_time'])?$this->order_info['create_time']:"";?>
		<strong>状态：</strong>
		<span class="green bold"><?php echo Order_Class::vrorderStatusText($orderStatus);?></span>
	</p>
		<?php foreach($this->vr_order_codeinfo as $key => $item){?>
		<p><strong>兑换码：</strong><?php echo isset($item['vr_code'])?$item['vr_code']:"";?></p>
		<?php }?>	
	<p>
		<?php if(in_array($orderStatus,array(1,2))){?>
		<label class="btn btn_orange">
			<input type="button" value="取消订单" onclick='window.location.href="<?php echo IUrl::creatUrl("/ucenter/order_status/order_id/".$this->order_info['order_id']."/op/cancel");?>"' />
		</label>
		<?php }?>

		<?php if($orderStatus == 2){?>
		<label class="btn btn_green">
			<input type="button" value="立即付款" onclick="window.location.href='<?php echo IUrl::creatUrl("/block/doPay/order_no/".$this->order_info['order_no']."");?>'" />
		</label>
		<?php }?>

		<?php if(in_array($orderStatus,array(11,3))){?>
		<label class="btn btn_green">
			<input type="button" value="确认服务完成" onclick='window.location.href="<?php echo IUrl::creatUrl("/ucenter/vr_order_status/order_no/".$this->order_info['order_no']."/op/confirm");?>"' />
		</label>
		<?php }?>

		<?php if(Order_Class::isRefundmentApply($this->order_info)){?>
		<label class="btn btn_orange">
			<input type="button" value="申请退款" onclick='window.location.href="<?php echo IUrl::creatUrl("/ucenter/refunds_edit/order_id/".$this->order_info['order_id']."");?>"' />
		</label>
		<?php }?>
	</p>
</section>

<?php if($this->order_info['invoice']==1){?>
<header class="uc_head">
	<h3>发票信息</h3>
</header>
<section class="col_table">
	<table>
		<tr>
			<th>所需税金：</th>
			<td><?php echo isset($this->order_info['taxes'])?$this->order_info['taxes']:"";?></td>
		</tr>
		<tr>
			<th>发票抬头：</th>
			<td><?php echo isset($this->order_info['invoice_title'])?$this->order_info['invoice_title']:"";?></td>
		</tr>
	</table>
</section>
<?php }?>

<header class="uc_head">
	<h3>商品清单</h3>
</header>

<section class="uc_table">
	<table>
		<thead>
			<tr>
				<th>图片</th>
				<th>商品名称</th>
				<th>赠送积分</th>
				<th>商品价格</th>
				<?php if($this->order_info['isjifen'] == 1){?>
				<th>兑换积分</th>
				<?php }?>
				<th>优惠金额</th>
				<th>商品数量</th>
				<th>小计</th>
				
			</tr>
		</thead>
		<tbody>
			<?php foreach(Api::run('getVrOrderGoodsListByGoodsid',array('#order_no#',$this->order_info['order_no'])) as $key => $good){?>
			<?php $good_info = JSON::decode($good['goods_array'])?>

			<tr>
				<td><img class="pro_pic" src="<?php echo IUrl::creatUrl("")."".$good['img']."";?>" width="50px" height="50px"/></td>
				<td class="t_l">
					<a class="blue" href="<?php echo IUrl::creatUrl("/site/products/id/".$good['goods_id']."");?>" target='_blank'><?php echo isset($good_info['name'])?$good_info['name']:"";?></a>
					<?php if($good_info['value']!=''){?><p><?php echo isset($good_info['value'])?$good_info['value']:"";?></p><?php }?>
				</td>
				<td><?php echo $good['point']*$good['goods_nums'];?></td>
				<td class="red2">￥<?php echo isset($good['goods_price'])?$good['goods_price']:"";?></td>
				<?php if($good['isjifen'] == 1){?>
				<td style="color: blue"><?php echo isset($good['duihuanpoint'])?$good['duihuanpoint']:"";?></td>
				<?php }?>
				<td class="red2">￥<?php echo $good['duihuanpoint']/$site_config['jifencon'];?></td>
				<td>x <?php echo isset($good['goods_nums'])?$good['goods_nums']:"";?></td>
				<td class="red2 bold">￥<?php echo $good['goods_nums']*$good['real_price'];?></td>
				
			</tr>
			<?php }?>
			<tr>
				<td colspan="8" class="tr">
					<p>商品总金额：￥<?php echo isset($this->order_info['order_amount'])?$this->order_info['order_amount']:"";?></p>
					<p>

					<?php if($this->order_info['taxes'] > 0){?>
					<p>+ 税金：￥<?php echo isset($this->order_info['taxes'])?$this->order_info['taxes']:"";?></p>
					<?php }?>

					<?php if($this->order_info['pay_fee'] > 0){?>
					<p>+ 支付手续费：￥<?php echo isset($this->order_info['pay_fee'])?$this->order_info['pay_fee']:"";?></p>
					<?php }?>

					<?php if($this->order_info['insured'] > 0){?>
					<p>+ 保价：￥<?php echo isset($this->order_info['insured'])?$this->order_info['insured']:"";?></p>
					<?php }?>

					<?php if($this->order_info['promotions'] > 0){?>
					<p>- 促销优惠金额：￥<?php echo isset($this->order_info['promotions'])?$this->order_info['promotions']:"";?></p>
					<?php }?>
					<p>订单支付金额：<span class="red">￥<label><?php echo isset($this->order_info['order_amount'])?$this->order_info['order_amount']:"";?></label></span></p>
				</td>
			</tr>
		</tbody>
	</table>
</section>

<script>
//快递跟踪
function freightLine(doc_id){
	var urlVal = "<?php echo IUrl::creatUrl("/block/freight/id/@id@");?>";
	urlVal = urlVal.replace("@id@",doc_id);
	art.dialog.open(urlVal,{'title':'轨迹查询',width:'600px',height:'500px'});
}
</script>

		</section>
		<aside class="bar">
			<?php $index=0;?>
			<?php foreach(menuUcenter::init() as $key => $item){?>
			<?php $index++;?>
			<nav class="user_bar">
				<h3><?php echo isset($key)?$key:"";?></h3>
				<ul>
					<?php foreach($item as $moreKey => $moreValue){?>
					<li><a title="<?php echo isset($moreValue)?$moreValue:"";?>" href="<?php echo IUrl::creatUrl("".$moreKey."");?>"><?php echo isset($moreValue)?$moreValue:"";?></a></li>
					<?php }?>
				</ul>
			</nav>
			<?php }?>
		</aside>
	</section>
</div>
<footer class="foot">
	<section class="service">
		<ul>
			<li class="item1">
				<i class="icon-star"></i>
				<strong>正品优选</strong>
			</li>
			<li class="item2">
				<i class="icon-globe"></i>
				<strong>上市公司</strong>
			</li>
			<li class="item3">
				<i class="icon-group"></i>
				<strong>300家连锁门店</strong>
			</li>
			<li class="item4">
				<i class="icon-plane"></i>
				<strong>长株潭次日达</strong>
			</li>
			<li class="item5">
				<i class="icon-gift"></i>
				<strong>满99包邮</strong>
			</li>
		</ul>
	</section>
	<section class="help">
		<?php $catIco = array('help-new','help-delivery','help-pay','help-user','help-service')?>
		<?php foreach(Api::run('getHelpCategoryFoot') as $key => $helpCat){?>
		<dl class="help_<?php echo $key+1;?>">
			<dt><?php echo isset($helpCat['name'])?$helpCat['name']:"";?></dt>
			<?php foreach(Api::run('getHelpListByCatidAll',array('#cat_id#',$helpCat['id'])) as $key => $item){?>
			<dd><a href="<?php echo IUrl::creatUrl("/site/help/id/".$item['id']."");?>"><?php echo isset($item['name'])?$item['name']:"";?></a></dd>
			<?php }?>
		</dl>
		<?php }?>
		<div class="contact">
			<em>400-888-8888</em>
			<span>周一到周日 8:00-18:00</span>
			<span>（仅收市话费）</span>
			<a href="#"><i class="icon-comments"></i> 24小时在线客服</a>
		</div>
	</section>
	<section class="copy">
		<?php echo IFilter::stripSlash($this->_siteConfig->site_footer_code);?>
	</section>
</footer>



<script>
//DOM加载完毕后运行
$(function(){
	//隔行换色
	$(".list_table tr:nth-child(even)").addClass('even');
	$(".list_table tr").hover(
		function () {
			$(this).addClass("sel");
		},
		function () {
			$(this).removeClass("sel");
		}
	);

	//按钮高亮
	var localUrl = "<?php echo IUrl::getUri();?>";
	$('a[href^="'+localUrl+'"]').parent().addClass('current');
});
</script>
</body>
</html>
